package com.xbongbong.saas.constant.callcenter;

/**
 * 话务中心常量
 *
 * @author 章华隽
 * @mail nefeed@163.com
 * @time 2017-10-26 17:49
 */
public class CallCenterConstant {

    public static final String MOBILE_CODE_SMS = "constant.callCenter.mobile_code_sms";
    /**
     * 对账单类型：充值
     */
    public static final int STATEMENT_TYPE_RECHARGE = 1;
    /**
     * 对账单类型：消费
     */
    public static final int STATEMENT_TYPE_CONSUME = 0;

    /**
     * Redis中记录话务中心企业开启的话务中心类型
     */
    public static final String REDIS_KEY_ACTIVE_MODULE_TYPE = "callCenterActiveModuleType";
    /**
     * Redis中记录话务中心企业开启的第三方平台的APIKEY
     */
    public static final String REDIS_KEY_API_KEY = "callCenterApiKey";
    /**
     * Redis中记录话务中心企业已经开启的坐席数
     */
    public static final String REDIS_KEY_AGENT_NUM = "callCenterAgentNum";
    /**
     * Redis中记录话务中心企业的超管给员工重新设置坐席角色时设计切换部门
     */
    public static final String REDIS_KEY_AGENT_CHANGE_DEP = "callCenterAgentChangeDep";
    /**
     * Redis中记录话务中心企业的超管给员工重新设置团队主管角色时设计切换部门
     */
    public static final String REDIS_KEY_SUPERVISOR_CHANGE_DEP = "callCenterSupervisorChangeDep";
    /**
     * Redis中记录话务中心通话记录的上次同步时间，超过12小时没有结果的进行删除
     * KEY为corpid + ":" + callLogId
     */
    public static final String REDIS_KEY_CALL_LOG_LAST_SYNC_TIME = "callCenterCallLogLastSyncTime";
    /**
     * 单通话记录最多尝试同步的次数，如果同步不到进行删除
     */
    public static final int CALL_LOG_MAX_TRY_SYNC_TIMES = 5;
    /**
     * Redis中记录话务中心记录用户手机号验证码的key
     */
    public static final String REDIS_KEY_MOBILE_CODE = "callCenterMobileCode";
    /**
     * Redis中记录话务中心记录用户手机号验证码是否发送过的key
     */
    public static final String REDIS_KEY_MOBILE_CODE_SEND = "callCenterMobileCodeInterval";
    /**
     * Redis中记录用户是否是坐席
     */
    public static final String REDIS_KEY_AGENT_PERMISSION = "callCenterAgentPermission";
    /**
     * Redis中记录用户是否是管理员
     */
    public static final String REDIS_KEY_ADMIN_PERMISSION = "callCenterAdminPermission";
    /**
     * Redis总记录用户是否是坐席的权限
     */
    public static final String REDIS_KEY_CALL_LOG_SYNC_MARK = "callCenterCallLogSyncMark";
    /**
     * Redis中记录用户是否能在客户或联系人详情页看到通话记录等话务中心内容
     */
    public static final String REDIS_VALUE_SHOW_CALL_CENTER_INFO = "callCenter:view";
    /**
     * Redis中记录录音语音转写状态的Key
     */
    public static final String REDIS_KEY_CALL_LOG_TRANSLATE_STATUS = "callCenterCallLogTranslateStatus";
    /**
     * Redis中记录公司是否能够有使用语音转写功能的Key
     */
    public static final String REDIS_KEY_ORG_AUDIO_TRANSLATE = "callCenterOrgAudioTranslate";
    /**
     * Redis中记录公司消费的锁
     */
    public static final String REDIS_KEY_CONSUME_LOCK = "callCenterConsumeLock";
    /**
     * 错误信息，一个员工只能隶属于
     */
    public static final String ERROR_MESSAGE_MEMBER_ONLY_BELONG_ONE_DEPARTMENT = "constant.callCenter.error_message_member_only_belong_one_department";


    /**
     * 销帮帮呼叫中心坐席失效使用时间监控  youli.chen
     */
    public static final String XBB_CALL_CENTER_OVER_TIME = "constant.callCenter.xbb_call_center_over_time";

    /**
     * 销帮帮呼叫中心坐席有效使用时间监控  youli.chen
     */
    public static final String XBB_CALL_CENTER_NOT_OUT_OF_TIME = "constant.callCenter.xbb_call_center_not_out_of_time";

    /**
     * Redis中记录坐席每日拨打客户的次数记录 youli.chen
     */
    public static final String CUSTOMER_DISTURB_DAY = "customerDisturbDay";
    /**
     * Redis中记录坐席每周拨打客户的次数记录 youli.chen
     */
    public static final String CUSTOMER_DISTURB_WEEK = "customerDisturbWeek";
    /**
     * Redis中记录坐席每月拨打客户的次数记录 youli.chen
     */
    public static final String CUSTOMER_DISTURB_MONTH = "customerDisturbMonth";
    /**
     * Redis中记录坐席未接来电的次数 youli.chen
     */
    public static final String CUSTOMER_MISS_CALLLOG_SUM = "customerMissCallLogSum";
    /**
     * Redis中记录防封号间隔的锁
     */
    public static final String REDIS_KEY_INTERVAL_LOCK = "callCenterIntervalLock";
    /**
     * Redis中记录防封号三十分钟的锁
     */
    public static final String REDIS_KEY_THIRTY_LOCK = "callCenterThirtyLock";
    /**
     * Redis中记录防封号三十分钟次数的锁
     */
    public static final String REDIS_KEY_THIRTY_INCR_NUM_LOCK = "callCenterThirtyIncrNumLock";
    /**
     * Redis中原记录防封号三十分钟的锁
     */
    public static final String REDIS_KEY_OLD_THIRTY_LOCK = "callCenterOldThirtyLock";
    /**
     * Redis中记录防封号一天的锁
     */
    public static final String REDIS_KEY_DAY_LOCK = "callCenterDayLock";
    /**
     * Redis中记录防封号一天次数的锁
     */
    public static final String REDIS_KEY_DAY_INCR_NUM_LOCK = "callCenterDayIncrNumLock";
    /**
     * Redis中原记录防封号一天的锁
     */
    public static final String REDIS_KEY_OLD_DAY_LOCK = "callCenterOldDayLock";

}
